package com.lc.user.express.httpserver;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/4/11.预估价格
 */
@HttpInlet(Net.GET_POINT_MONEY)
public class GetPointMoney extends ZJDBAsyGet<GetPointMoney.Info> {
    public String cityid,userid,juli,cid;

    public GetPointMoney(String userid,String cityid, String juli,String cid,AsyCallBack listener) {
        super(listener);
        this.cityid = cityid;
        this.userid = userid;
        this.juli = juli;
        this.cid = cid;
    }

    @Override
    protected Info parser(JSONObject object) {
        if (object.optInt("message") == 1) {
            Info info = new Info();
            info.account = object.optString("account");
            info.couponmoney = object.optString("couponmoney");
            info.couponid = object.optString("couponid");
            return info;
        }
        return null;
    }

    public static class Info {
        public String account,couponmoney,couponid;
    }
}
